/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 刘柄华
 * Date: 2022-05-23
 * Time: 22:22
 */
public class TestDemo02 {

    public static void main(String[] args) {
        String s1 = "abc" + "def";
        String s2 = new String(s1);
        if(s1.equals(s2)){
            System.out.println("equals");
        }
        if(s1 == s2){
            System.out.println("==");
        }
    }


    public static void main2(String[] args) {
        System.out.println(test(4));
    }
    public static int test(int x){
        int j=1;
        switch (x){
            case 1:j++;
            case 2:j++;
            case 3:j++;
            case 4:j++;
            case 5:j++;
            default:j++;
        }
        return j+x;
    }

    public static void main1(String[] args) {
        System.out.println(1+"10"+3+"2");
    }


}
